package file;

import java.io.File;

public class Test06 {
    public static void main(String[] args) {
        File f = new File(".");
        if (f.isDirectory()){
            File[] subs = f.listFiles(pathname -> pathname.getName().contains("s"));

            for (File sub :subs){
                System.out.println(sub.getName());
            }
        }


    }
}
